Starts another application and defines the respective window style, if necessary.
他のアプリケーションを起動し、必要であれば表示ウィンドウのスタイル設定なども行います。
Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync])
Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync])
Complete path and program name of the program that you want to start.
実行するプログラムの名前と絶対パス。
Optional integer expression that specifies the style of the window that the program is executed in. The following values are possible:
オプション設定として、プログラムの実行ウィンドウのスタイルを指定する整数表式。ここには下記の値を指定できます。
|
0
|
The focus is on the hidden program window.
|
|
1
|
The focus is on the program window in standard size.
|
|
2
|
The focus is on the minimized program window.
|
|
3
|
focus is on the maximized program window.
|
|
4
|
Standard size program window, without focus.
|
|
6
|
Minimized program window, focus remains on the active window.
|
|
10
|
Full-screen display.
|
Any string expression that specifies the command line that want to pass.
実行するアプルケーションに渡すコマンド行パラメータを示す文字列表式。
If this value is set to true, the Shell command and all Office tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false.
この値に True を指定すると、シェルプロセスの実行が完了するまで、Shell コマンドを含めたすべての Office のタスクが待機します。この値に False を指定すると、実行直後にシェル制御が戻ります。デフォルト値は False です。
Sub ExampleShellForWin
Sub ExampleShellForWin
Shell("c:\windows\calc.exe",2)
Shell("c:\windows\calc.exe",2)
end sub
end sub